package com.taxi.service;

import com.taxi.remote.ServiceOrderClient;
import com.taxi.request.OrderRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: aniu
 * @Date: 2023/10/12
 * @ClassName: AlipayService
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@Service
public class AlipayService {
    @Autowired
    private ServiceOrderClient serviceOrderClient;
    public void pay(Long orderId) {
        OrderRequest orderRequest=new OrderRequest();
        orderRequest.setOrderId(orderId);
        serviceOrderClient.pay(orderRequest);
    }
}
